<script setup lang="ts">
import ExhibitionHeader from '../components/exhibition/exhibitionHeader.vue';
import ExhibitionMain from '../components/exhibition/exhibitionMain.vue';
import AddExhibition from '../components/exhibition/addExhibition.vue';
import { useExhibitionHeaderStore } from '../store/exhibition/exhibitionHeaderStore';
import { useExhibitionStore } from '../store/exhibition/exhibitionStore';

// 初始化store
const exhibitionHeaderStore = useExhibitionHeaderStore();
const exhibitionStore = useExhibitionStore();

// 处理搜索事件
const handleSearch = (params) => {
  // 可以在这里进行额外的处理
  console.log('展览页面接收到搜索参数:', params);
};
</script>

<template>
  <div class="exhibition-container">
    <ExhibitionHeader @search="handleSearch" />
    <ExhibitionMain />
    <AddExhibition id="addExhibitionComponent" />
  </div>
</template>

<style scoped>
</style>